 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
#include
<iostream.h>
|
|
|
int main()
|
|
{
|
|
|
int x; //A normal integer
|
|
|
int *pointer; //A pointer to an integer
|
|
|
pointer=&x; //Read it,
|
|
|
//"pointer equals the
address of x“
|
|
|
cin>>x; //Reads in x
|
|
|
cout<<*pointer; //Note the use of the * to
|
// output the actual number stored in x
|
|
return 0;
|
|
|
}
|
|